//
//  AddPerson_Search_CollectionViewCell.m
//  MZSystem
//
//  Created by 智障 on 2018/11/9.
//  Copyright © 2018 zerod. All rights reserved.
//

#import "AddPerson_Search_CollectionViewCell.h"

@interface AddPerson_Search_CollectionViewCell()<UITextFieldDelegate>

@end
@implementation AddPerson_Search_CollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    _searchTF.delegate = self;
    [_searchTF addTarget:self action:@selector(textFieldEditChanged:) forControlEvents:UIControlEventEditingChanged];
}
- (void)textFieldEditChanged:(UITextField *)textField{
    if (self.TFChange) {
        self.TFChange(textField.text);
    }
    [textField becomeFirstResponder];
}
@end
